<include file="public@header"/>

</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="">产品操作</a></li>
    </ul>

    <form method="post" class="form-horizontal margin-top-20 js-ajax-form" action="{:url('admin/goods/addKP')}"
          role="form">

        <div class="col-xs-5">
            <div class="form-group">
                <label for="firstname" class="col-sm-2 control-label">所属产品</label>
                <div class="col-sm-10">
                    <select name="g_id" id="" class="form-control selected" data-val="{$data.parent_id|default=''}">
                        <volist name="goodsAll" id="vo">
                            <eq name="$g_id" value="$vo['g_id']">
                                    <option selected value="{$vo.g_id}">{$vo.g_name}</option>
                                <else/>
                                    <option  value="{$vo.g_id}">{$vo.g_name}</option>
                            </eq>

                        </volist>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="firstname" class="col-sm-2 control-label">输入卡密</label>
                <div class="col-sm-10">
                    <textarea name="content" id="" class="form-control" style="height: 300px"></textarea>
                    <p class="help-block">
                        最多添加500行卡密，自动检测:本次重复的删除、前后空格删除,
                    </p>
                </div>
            </div>


            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button class="js-ajax-submit btn btn-success" type="submit">提交</button>
                </div>
            </div>
        </div>
    </form>
</div>
</body>
</html>
<script src="__STATIC__/js/admin.js"></script>